package caj.springboot.model.exception;

import caj.springboot.common.ResultCodeEnum;

/**
 * @description: 实体数据交互异常类
 * @author: CAJ
 * @time: 2023/12/8 16:19
 */
public class EntityException {

    public static class InsertFailed extends BaseException{
        public InsertFailed(String message){
            super(ResultCodeEnum.INSERT_ERROR, message);
        }
    }

    public static class EditFailed extends BaseException{
        public EditFailed(String message){
            super(ResultCodeEnum.INSERT_ERROR, message);
        }
    }

    public static class DeleteFailed extends BaseException{
        public DeleteFailed(String message){
            super(ResultCodeEnum.INSERT_ERROR, message);
        }
    }

}
